package com.hl.card.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 航空vip
 * </p>
 *
 * @author coole
 * @since 2018-09-21
 */
public class Bibivip extends Model<Bibivip> {

    private static final long serialVersionUID = 1L;

    /**
     * vipid
     */
    @TableId(value = "vipid", type = IdType.AUTO)
    private Integer vipid;
    /**
     * 用户id
     */
    private String userid;
    /**
     * 用户名称
     */
    private String name;
    /**
     * 身份证
     */
    private String idcard;
    /**
     * 护照
     */
    private String passport;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 余额
     */
    private BigDecimal balance;
    /**
     * vip状态 1 已使用 ，2已失效，3,已禁用
     */
    private Integer status;
    @TableField("create_time")
    private Date createTime;
    @TableField("expiry_time")
    private Date expiryTime;


    public Integer getVipid() {
        return vipid;
    }

    public void setVipid(Integer vipid) {
        this.vipid = vipid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getPassport() {
        return passport;
    }

    public void setPassport(String passport) {
        this.passport = passport;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Date expiryTime) {
        this.expiryTime = expiryTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.vipid;
    }

    @Override
    public String toString() {
        return "Bibivip{" +
        "vipid=" + vipid +
        ", userid=" + userid +
        ", name=" + name +
        ", idcard=" + idcard +
        ", passport=" + passport +
        ", phone=" + phone +
        ", balance=" + balance +
        ", status=" + status +
        ", createTime=" + createTime +
        ", expiryTime=" + expiryTime +
        "}";
    }
}
